<template>
    <view class="container">
        <holder height="calc(var(--status-bar-height) + 66px)"></holder>
        <template v-for="item in list" >
            <layout-module :config="item.content" :key="item.id" v-if="item"></layout-module>
        </template>
	</view>
</template>

<script lang="ts" setup>
import { ref } from 'vue';

const list = ref<any>([])

uni.$u.$api.BaseApi.discoverPage().then((res:any) => {
    list.value = res.components
})
</script>

<style scoped lang="scss">

</style>
